import * as network from '@/utils/request';

import { delivery } from '../../config/Apis';

export async function getDeliveryList(params: any): Promise<any> {
  return network.post(delivery.billList, {
    data: params,
    requestType: 'form',
  });
}

export async function getDeliveryTotal(params: any): Promise<any> {
  return network.post(delivery.billTotal, {
    data: params,
    requestType: 'form',
  });
}

export async function getDeliveryDetail(params: any): Promise<any> {
  return network.post(delivery.billDetail, {
    data: params,
    requestType: 'form',
  });
}

export async function changePhone(params: any): Promise<any> {
  return network.post(delivery.changePhone, {
    data: params,
    requestType: 'form',
  });
}

export async function sendSms(params: any): Promise<any> {
  return network.post(delivery.sendSms, {
    data: params,
    requestType: 'form',
  });
}

export async function cancelReturn(params: any): Promise<any> {
  return network.post(delivery.cancelReturn, {
    data: params,
    requestType: 'form',
  });
}

export async function billReturn(params: any): Promise<any> {
  return network.post(delivery.billReturn, {
    data: params,
    requestType: 'form',
  });
}

export async function deliveryCheckout(params: any): Promise<any> {
  return network.post(delivery.checkout, {
    data: params,
    requestType: 'form',
  });
}

export async function getDeliveryLog(params: any): Promise<any> {
  return network.post(delivery.billLog, {
    data: params,
    requestType: 'form',
  });
}

export async function getDeliveryImage(params: any): Promise<any> {
  return network.post(delivery.billImage, {
    data: params,
    requestType: 'form',
  });
}

export async function getReasonList(params: any): Promise<any> {
  return network.post(delivery.reasonList, {
    data: params,
    requestType: 'form',
  });
}

export async function orderToCab(params: any): Promise<any> {
  return network.post(delivery.orderToCab, {
    data: params,
    requestType: 'form',
  });
}

export async function adminOpenCell(params: any): Promise<any> {
  return network.post(delivery.adminOpenCell, {
    data: params,
    requestType: 'form',
  });
}

export async function delivertOrderExport(params: any): Promise<any> {
  return network.post(delivery.delivertOrderExport, {
    data: params,
    requestType: 'form',
  });
}

export async function reportExportList(params: any): Promise<any> {
  return network.post(delivery.reportExportList, {
    data: params,
    requestType: 'form',
  });
}

export async function historyOrderList(params: any): Promise<any> {
  return network.post(delivery.historyOrderList, {
    data: params,
    requestType: 'form',
  });
}

export async function delivertOrderDownload(params: any): Promise<any> {
  return network.post(delivery.delivertOrderDownload, {
    data: params,
    requestType: 'form',
  });
}
